package com.quoo.struts2.action;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import com.opensymphony.xwork2.ActionSupport;
import com.quoo.struts2.domain.User;
import com.quoo.struts2.service.UserService;

public class SaveUserAction extends ActionSupport {
	private User user;
	private UserService service;

	public UserService getService() {
		return service;
	}

	public void setService(UserService service) {
		this.service = service;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String execute() throws Exception {
		this.service.Save(this.user);
		return SUCCESS;
	}
		
	}
